<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<ul>
	<li><a title="Strona główna" href="index.html">Strona główna<span class="sep-right"></span>
	</a></li>
	<c:if test="${loggedUser.hasRole('user')}">
		<li><a title="Znajomi" href="profile.html"><span class="sep-left"></span>Mój profil<span class="sep-right"></span></a></li>
		<li><a title="Abstract" href="notifications.html"><span class="sep-left"></span>Powiadomienia 
		<c:if test="${listOfNotifications != null}">
			<c:if test="${listOfNotifications.size()!=0}">
				(${listOfNotifications.size()})
			</c:if>
		</c:if> 
		<span class="sep-right"></span></a></li>
	</c:if>
	<c:if test="${loggedUser.hasRole('admin')}">
		<li><a title="Admin" href="admin.html"><span class="sep-left"></span>Admin<span class="sep-right"></span></a>
			<div class="dd">
				<ul>
					<li><a title="Użytkownicy" href="adminUserDetails.html"><span class="sep-left"></span>Użytkownik</a>
						<div class="dd">
							<ul>
								<li><a title="Lista użytkowników" href="adminListOfUsers.html"><span class="sep-left"></span><span class="dd-first"></span>Lista użytkowników</a></li>
								<li><a title="Lista powiadomień" href="adminListOfNotifications.html"><span class="sep-left"></span>Lista powiadomień</a></li>
								<li><a title="Lista postów" href="adminListOfPosts.html"><span class="sep-left"></span>Lista postów</a></li>
							</ul>
						</div></li>
				</ul>
			</div></li>
	</c:if>
	<!--
				<li><a title="HI Tech" href="#"><span class="sep-left"></span>HI Tech<span class="sep-right"></span></a></li>
				<li><a title="For Children" href="#"><span class="sep-left"></span>For Children<span class="sep-right"></span></a></li>
				<li><a title="For Ladies" href="#"><span class="sep-left"></span>For Ladies<span class="sep-right"></span></a></li>
				<li><a title="Sale!" href="#"><span class="sep-left"></span>sale!</a></li>				
-->
</ul>
<div class="cl"></div>